/*
 * jiyan
 */
package com.jiyan.material.service;

import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;

import com.rzhkj.core.base.BaseMybatisDAO;
import com.rzhkj.core.base.BaseMybatisSVImpl;

import com.jiyan.material.facade.MaterialSV;
import com.jiyan.material.dao.MaterialDAO;
import com.jiyan.material.entity.Material;


/**
 * 供应料材
 * @author jiyan
 */
@Component
@Service
public class MaterialSVImpl extends BaseMybatisSVImpl<Material,Long> implements MaterialSV{


	@Resource
	private MaterialDAO materialDAO;

    @Override
    protected BaseMybatisDAO getBaseMybatisDAO(){
		return materialDAO;
	}


	/**
	 * 加载对象供应料材 通过code
	 * @param code 编码
	 * @return Material
	 */
     @Override
     public Material loadByCode(java.lang.String code) {
		return materialDAO.loadByCode(code);
	 }
	/**
	 * 加载对象供应料材 通过suppierCode
	 * @param suppierCode 供应商编码
	 * @return Material
	 */
     @Override
     public Material loadBySuppierCode(java.lang.String suppierCode) {
		return materialDAO.loadBySuppierCode(suppierCode);
	 }

     /**
      * 删除对象供应料材
	   * @param id * @param code 编码* @param suppierCode 供应商编码
      */
	 @Override
     public void delete(java.lang.Long id,java.lang.String code,java.lang.String suppierCode) {
		materialDAO.delete(id,code,suppierCode);
	 }



}